import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';

const routes: Array<RouteRecordRaw> = [

  {
    path: '/',
    name: '',
    component: () => import("@/views/Home/index.vue")
  },
  {
    path: '/company',
    name: 'company',
    component: () => import("@/views/Company/index.vue")
  },
  {
    path: '/message',
    name: 'message',
    component: () => import("@/views/Message/index.vue")
  },
  {
    path: '/my',
    name: 'my',
    component: () => import("@/views/Mine/index.vue")
  },
  {
    path: '/search',
    name: 'search',
    component: () => import("@/components/Search/SearchCom.vue")
  },
  {
    path: '/workinfo',
    name: 'workinfo',
    component: () => import("@/components/WorkInfo/WorkInfo.vue")
  },
  {
    path: '/companyinfo',
    name: 'companyinfo',
    component: () => import("@/views/Company/CompanyInfo.vue")
  },
  {
    path: '/login',
    name: 'login',
    component: () => import("@/views/Login/index.vue")
  },
  {
    path: '/chat',
    name: 'chat',
    component: () => import("@/views/Message/Chat.vue")
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes
});
export default router;